package com.travel.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Data
@Configuration
@PropertySource(value = "classpath:alipay.properties")
@ConfigurationProperties(prefix = "alipay")
public class AliPayConfig {
    @Value("${ALIPAY.GATEWAYHOST}")
    private String gatewayHost;

    @Value("${ALIPAY.APPID}")
    private String appId;

    @Value("${ALIPAY.PRIVATEKEY}")
    private String privateKey;

    @Value("${ALIPAY.PUBLICKEY}")
    private String publicKey;

    @Value("${ALIPAY.RETURNPBULICKEY}")
    private String returnPublicKey;

    @Value("${ALIPAY.PROTOCOL}")
    private String protocol;

    @Value("${ALIPAY.SIGNTYPE}")
    private String signType;

    @Value("${ALIPAY.RETURNURL}")
    private String returnUrl;

    @Value("${ALIPAY.NOTIFYURL}")
    private String notifyUrl;
}

